<?php
include 'check.php';

mysql_query("
                    INSERT INTO pacientes (
                        Nome,
                        Sobrenome,
                        RG,
                        CPF,
                        Telefone1,
                        Telefone2,
                        Email,
                        Plano_de_Saude,
                        Alergias,
                        Deficiencias
                        )
                    VALUES (
                        '" . $_POST["name"] . "',
                        '" . $_POST["lastName"] . "',
                        '" . $_POST["rg"] . "',
                        '" . $_POST["cpf"] . "',
                        '" . $_POST["tel1"] . "',
                        '" . $_POST["tel2"] . "',
                        '" . $_POST["email"] . "',
                        '" . $_POST["insurance"] . "',
                        '" . $_POST["sick1"] . "',
                        '" . $_POST["sick2"] . "'
                    )") or die(mysql_error());
?>

<html>
    <head>
        <title>Main</title>
        <link rel="stylesheet" href="css/index.css">
    </head>

    <body>
    <center><div><button class="pure-button pure-button-disabled">Paciente Cadastrado com Sucesso!</button></div>

        <br>

        <div><a class="pure-button pure-button-primary" href="mainLobby.php">Voltar para a Tela Inicial</a></div></center>
</body>
</html>